package com.qiyu.common.utils;

/**
 * @Author idea
 * @Date created in 9:00 上午 2020/7/5
 */
public class SysCodeUtil {


    private Object sysCodeDao;

    private Object redisService;

    private Object localCacheService;

//    public static String queryByCode(String code) {
//        if (code == null || code == "") {
//            return null;
//        }
//        String result = null;
//        result = localCacheService.get(buildLocalQueryKey(code));
//        if (result != null) {
//            return result;
//        }
//        result = redisService.get(buildQueryKey(code));
//        if (result != null) {
//            return result;
//        }
//        return sysCodeDao.queryByCode(code);
//    }

    private static Object buildLocalQueryKey(String code) {
        return  "";
    }

    private static Object buildQueryKey(String code) {
        return "code";
    }
}
